import {
	request_post
} from './respones.js'

// 获取会话列表
export const getMessageList = (id) => {
	return request_post('/conversation_list', {
		'open_id':id
	})
}

// 创建会话
export const getCreateMessage = (id) => {
	return request_post('/create_temporary_session', {
		'team_id':id
	})
}

// 获取会话 进入会话
export const getGotoMessage = (id) => {
	return request_post('/enter_conversation', {
		'team_id':id
	})
}

// 获取会话 进入会话2
export const getGotoMessageConversation = (id) => {
	return request_post('/enter_conversation', {
		'conversation_id':id
	})
}
// 发送消息
export const getSendMessageToTeam = (data) => {
	return request_post('/send_message_yumaoqiu',{
		'conversation_id':data.id,
		'open_id':data.openid,
		'message':data.message
	})
}